<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .info{
            position: relative;
            width: 200px;
            height: 300px;
            overflow: hidden;
        }
        .box{
            width: 200px;
            height: 120px;
            position: absolute;
            top: 300px;
            transition: all 1s;
            /* opacity: 0; */
        }
        .info:hover .box{
            /* opacity: 1; */
            background-color:rgba(0,0,0,0.3);
            transform: translateY(-120px);
            color: #fff;
        }
        .box>h3{
            margin: 10px;
        }
        .box>p{
            margin: 10px;
        }
    </style>
</head>
<body>
    <div class="info">
        <img src="./banner01.jpg" alt="">
        <div class="box">
            <h3>文字标题</h3>
           <p> 图片文字说明，图片文字说明</p>
        </div>
    </div>
</body>
</html>